//
//  GRAboutRiceViewController.m
//  YC_GRice
//
//  Created by LiuFeng on 2018/7/31.
//  Copyright © 2018年 YeCai. All rights reserved.
//

#import "GRAboutRiceViewController.h"
#import "GRNoInteractionViewController.h"

@interface GRAboutRiceViewController ()

@property (weak, nonatomic) IBOutlet NSLayoutConstraint *topLayout;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *bottomLayout;

@property (weak, nonatomic) IBOutlet UILabel *version;

@end

@implementation GRAboutRiceViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.navigationItem.title  = @"关于我们";
    // Do any additional setup after loading the view from its nib.
    if (IS_IPHONEX) {
        _topLayout.constant    = 109 + 24;
        _bottomLayout.constant = 24 + 34;
    }
    
    _version.text = [NSString stringWithFormat:@"v%@",APPVERSON];
}


- (IBAction)gradingGRice:(id)sender {
    [NSObject openSystemURL:APPDOWNLOADADDRESS];
}

- (IBAction)userProtocol:(id)sender {
    GRNoInteractionViewController *webvc = [[GRNoInteractionViewController alloc] init];
    webvc.URL = @"https://new.xiaoguikuaipao.com/protocol.html";
    webvc.titleAutomation = YES;
    [self.navigationController pushViewController:webvc animated:YES];
}



- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
